#include "CGameApp.h"
#include "Macros.h"

int WINAPI WinMain( __in HINSTANCE hInstance, __in_opt HINSTANCE hPrevInstance, __in LPSTR lpCmdLine, __in int nShowCmd )
{
	new GameApp();
	CVSView *view=new CVSView(hInstance,800,600,false,"Demo");
	view->Update();
	//delete view; //ricky.ngk fixed leak
	delete GameApp::GetInstance(); //ricky.ngk fixed leak 
	delete CFpsController::GetInstance();//ricky.ngk fixed leak
	delete CStateManagement::GetInstance();//ricky.ngk fixed leak
	//while(true);
}